package mysql

import "gorm.io/gorm"

type Rental struct {
	gorm.Model
	Title   string  `gorm:"type:varchar(20);not null;comment:房源标题"`
	Content string  `gorm:"type:varchar(40);not null;comment:房源介绍"`
	Price   float64 `gorm:"type:decimal(10,2);not null;comment:房租价格"`
	Address string  `gorm:"type:varchar(60);not null;comment:房屋地址"`
}
